package com.qianyu.project.service.impl;

import com.qianyu.project.entity.SecurityCheckRectification;
import com.qianyu.project.mapper.SecurityCheckRectificationMapper;
import com.qianyu.project.service.ISecurityCheckRectificationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 安全检查记录整改 服务实现类
 * </p>
 *
 * @author gs
 * @since 2021-01-30
 */
@Service
public class SecurityCheckRectificationServiceImpl extends ServiceImpl<SecurityCheckRectificationMapper, SecurityCheckRectification> implements ISecurityCheckRectificationService {
@Autowired
 SecurityCheckRectificationMapper securityCheckRectificationMapper;
    @Override
    public List<SecurityCheckRectification> getSecurityCheck(SecurityCheckRectification ss) {
        return securityCheckRectificationMapper.getSecurityCheck(ss);
    }

    @Override
    public void deleteSecurityCheckId(String id) {
        securityCheckRectificationMapper.deleteSecurityCheckId(id);
    }

    @Override
    public void addsecuritycheck(SecurityCheckRectification ss) {
        ss.setApproveStatus("1");
        securityCheckRectificationMapper.addsecuritycheck(ss);
    }

    @Override
    public void updateSecurityCheck(SecurityCheckRectification ss) {
        securityCheckRectificationMapper.updateSecurityCheck(ss);
    }
}
